//mongoose node 的驱动程序
const mongoose = require("mongoose");

const schema = new mongoose.Schema({
    username: String,// 用户账号
    password: String, // 用户密码
    phone:String, //电话
    site:Array, //地址
    order:Array,// 订单
    coupons:Array,//优惠卷
    cartsId: {
        type: "ObjectId",
        ref: "carts"
    }, //购物车 id
});

mongoose.model("users", schema, "users");


